comm
Verified for current stable LTS
Comm Command: Print Only Common Lines Using Stdin For One File
Use for Print only common lines using stdin for one file with Comm. Exact CLI syntax to Print only common lines using stdin for one file using Comm.
When to use this: Use for Print only common lines using stdin for one file with Comm.
Command Syntax
cat <file1> | comm -12 - <file2> cat <file1> | comm -12 - <file2> Command Breakdown
-12- Command Option
- Tool-specific option used by this command invocation.
-- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to Print only common lines using stdin for one file using Comm.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Comm Command: Get Lines Only Found In First File And Save To Third File
comm -23 <file1> <file2> > <file1_only> Comm Command: Print Lines Unique To Second File Without Sorting comm -13 <(sort <file1>) <(sort <file2>) Comm Command: Print Only Common Lines Between Two Files comm -12 <file1> <file2> Comm Command: Produce Three Columns Of Lines Only In First, Second, And Common comm <file1> <file2> Comm Command: Get Lines Only In First File comm -23 <file1> <file2> > <file1_only>